package cn.edu.sdjzu.xg.eagle.xg23_kcsj_01.mapper;


import cn.edu.sdjzu.xg.eagle.xg23_kcsj_01.entity.AbsAchievement;
import cn.edu.sdjzu.xg.eagle.xg23_kcsj_01.entity.AchievementType;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface AbsAchievementMapper {
    @Insert("INSERT INTO achievement(id,achievement_type_id) VALUES (#{id},#{achievementType.id})")
    boolean addAchievement(Long id, AchievementType achievementType);

//    AbsAchievement selectById(Long id);

    @Delete("DELETE FROM achievement WHERE id=#{id}")
    boolean deleteById(Long id);
}
